package com.xnx3.utils;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
* @ClassName: BusinessException
* @Description: 业务异常
*
 */
@SuppressWarnings("unused")
@Data
@EqualsAndHashCode(callSuper = false)
public class BusinessException extends RuntimeException {
    static final long serialVersionUID = 1L;
    
    private String errorCode = null;
    
    public BusinessException() {
    	super();
    }
    public BusinessException(String message) {
        super(message);
        this.errorCode = "100000";
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    protected BusinessException(String message, Throwable cause,
                                boolean enableSuppression,
                                boolean writableStackTrace) {
    	super(message, cause, enableSuppression, writableStackTrace);
    }
}